package cn.xiaolang.function.design_pattern.command;

/**
 * 睡觉命令
 *
 * @author fuhw/Dean
 * @date 2019-07-08
 */
public class SleepCommand implements Command {

    private Receiver receiver;

    public SleepCommand() {
        this.receiver = new Receiver();
    }
    @Override
    public void execute() {
        receiver.doAction("睡觉");

    }
}
